package org.fireflow2.designer.eclipse.properties.tab;

import org.eclipse.jface.viewers.IFilter;
import org.fireflow2.designer.eclipse.parts.tree.ActivityListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.DataFieldListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.DataFieldTreePart;
import org.fireflow2.designer.eclipse.parts.tree.EndNodeListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.ImportListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.ResourceDefListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.RouterListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.ServiceListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.StartNodeListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.TransitionListTreePart;
import org.fireflow2.designer.eclipse.parts.tree.WorkflowElementListTreePart;

public class SectionFilter implements IFilter {

	public boolean select(Object arg0) {
//		System.out.println("Inside section filter:: arg0 is "+arg0);
		if ((arg0 instanceof ActivityListTreePart)||
				(arg0 instanceof DataFieldListTreePart)||
				(arg0 instanceof DataFieldTreePart) ||
				(arg0 instanceof RouterListTreePart)||
				(arg0 instanceof TransitionListTreePart)||
				(arg0 instanceof EndNodeListTreePart) ||
				(arg0 instanceof StartNodeListTreePart)||
				(arg0 instanceof ImportListTreePart) || 
				(arg0 instanceof ServiceListTreePart) || 
				(arg0 instanceof ResourceDefListTreePart)||
				(arg0 instanceof WorkflowElementListTreePart)
				){
			return false;
		}
		return true;
	}

}
